#include <iostream>
#include <stdlib.h>

int main(int argc, char * argv[])
{
  int i, n;
  system("CLS");
  do
  {
    std::cout << "BBedite 4uslo: " << std::endl;
    std::cin >> n;
  } while(n < 0);

  while(n > 0)
  {
    i = n % 10;
    n /= 10;
    std::cout << "i = " << i << std::endl;
  }
  system("PAUSE >> NULL");
  return 0;
}
